import request from '@/utils/request'

/**
 * 添加租户信息
 * @param {code:"",name:""} formData
 */
export function addTenantInfo(formData) {
  return request({
    url: 'tenant/info/add',
    method: 'post',
    params: formData
  })
}

/**
 * 删除租户信息
 * @param  id
 */
export function deleteTenantInfo(id) {
  return request({
    url: 'tenant/info/delete',
    method: 'delete',
    params: { id }
  })
}

// 更新租户
export function updateTenantInfo(formData) {
  return request({
    url: 'tenant/info/update',
    method: 'post',
    params: formData
  })
}

// 查询租户
export function queryTenantInfo(queryData) {
  return request({
    url: 'tenant/info/query',
    method: 'get',
    params: queryData
  })
}
